﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    public partial class IoPatientFee
    {
        public long Id { get; set; }
        public long? RegNo { get; set; }
        public long? NewRegNo { get; set; }
        public int? ItemId { get; set; }
        public int? NewItemId { get; set; }
        public int? AdvId { get; set; }
        public DateTime? FeeTime { get; set; }
        public int? FeeDeptId { get; set; }
        public decimal? ReimbursePrice { get; set; }
        public decimal? UnReimbursePrice { get; set; }
        public decimal? Quantity { get; set; }
        public decimal? ReimburseAmount { get; set; }
        public decimal? UnReimburseAmount { get; set; }
        public int? ItemCategory { get; set; }
        public int? CreateUserId { get; set; }
        public DateTime? CreateOn { get; set; }
        public int? WardId { get; set; }
        public int? RealExecDept { get; set; }
        /// <summary>
        ///     IO_PatientFee_Source1(1,&quot;补记账&quot;),
        ///     IO_PatientFee_Source2(2,&quot;出院欠费&quot;),
        ///     IO_PatientFee_Source3(3,&quot;红冲&quot;),
        ///     IO_PatientFee_Source4(4,&quot;预结算&quot;),
        ///     IO_PatientFee_Source5(5,&quot;结账&quot;),
        ///     IO_PatientFee_Source6(6,&quot;患者常规费&quot;),
        ///     IO_PatientFee_Source7(7,&quot;护嘱费用&quot;),
        ///     IO_PatientFee_Source8(8,&quot;转区,出区&quot;),
        ///     IO_PatientFee_Source9(9,&quot;非药品医嘱申请自动计费&quot;),
        /// 10（跨病区退费）
        /// 11（非药品医嘱申请作业计费）
        /// 12（第三方途径计费）
        ///     IO_PatientFee_Source13(13,&quot;手麻计费&quot;),
        ///     IO_PatientFee_Source14(14,&quot;静配计费&quot;),
        ///     IO_PatientFee_Source15(14,&quot;输血计费&quot;),
        /// </summary>
        public byte? Source { get; set; }
        /// <summary>
        /// Source =14时，pairid = ward_tb_adv.advid;
        /// </summary>
        public long? PairId { get; set; }
        public bool? IsDelete { get; set; }
        public int HospitalId { get; set; }
        public string? Unit { get; set; }
        public string? Standard { get; set; }
        public string? CheckCode { get; set; }
        public decimal? Rate { get; set; }
        public string? StandName { get; set; }
        public string? Zczh { get; set; }
        public decimal? BeforeReimbursePrice { get; set; }
        public decimal? BeforeUnReimbursePrice { get; set; }
        /// <summary>
        /// 医保码
        /// </summary>
        public string? NationCode { get; set; }
        /// <summary>
        /// 收费项目全局id
        /// </summary>
        public int? GlobalId { get; set; }
        public long FeeId { get; set; }
        /// <summary>
        /// 医保标识（1自费2医保）
        /// </summary>
        public int? PayType { get; set; }
        /// <summary>
        /// 状态
        /// (
        /// 
        /// -1 数据不上传，不结算
        /// 0未核对（未上传）
        /// 
        /// 1已上传
        /// 
        /// 2已核对（未上传）（撤销上传后状态变为已核对）
        /// 
        /// 3已结账
        /// 
        /// 4上传失败
        /// 
        /// 5已预结算
        /// )
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 结算id
        /// </summary>
        public long? BillId { get; set; }
        /// <summary>
        /// 减免金额
        /// </summary>
        public decimal? DeductionAmt { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 计费医生
        /// </summary>
        public int? FeeDoctorId { get; set; }
    }
}
